package com.example.vo;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author ypc
 * @date 2020/12/18 11:19
 * Description:
 */
@RestControllerAdvice
public class Test {
    @ExceptionHandler(Exception.class)
    public Object add(Exception ex) {
        return ex;
    }
}
